<?php
// 不以/结尾
define('ROOT_DIR', str_replace('\\','/',dirname(__FILE__)));

define("ROOT_URL", 'http://'.$_SERVER['SERVER_NAME'].'/');

// 设置session id的cookie的domain，使www.lapula.com和lapula.com共用sessionid
$session_id = $_COOKIE[session_name()];
if(!$session_id){
	$session_id = session_id();
	// 修改session_id的domain
	setcookie(session_name(), $session_id, 0, "/", ".lapula.com");
}